package cn.scu.ne04jdemo.service.imp;

import cn.scu.ne04jdemo.dao.ScheOrderTaskInfoMapper;
import cn.scu.ne04jdemo.entitiy.ScheOrderTaskInfoEntity;
import cn.scu.ne04jdemo.service.ScheOrderTaskInfoService;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScheOrderTaskInfoServiceImpl extends ServiceImpl<ScheOrderTaskInfoMapper, ScheOrderTaskInfoEntity> implements ScheOrderTaskInfoService {

    @Autowired
    private ScheOrderTaskInfoMapper scheOrderTaskInfoMapper;


    @Override
    public IPage<ScheOrderTaskInfoEntity> findPage(IPage<ScheOrderTaskInfoEntity> page, String orderId, String orderName, String taskState) {
        return scheOrderTaskInfoMapper.selectPage(page, orderId, orderName, taskState);
    }

    @Override
    public List<JSONObject> getScheActivateOrderInfo() {
        return scheOrderTaskInfoMapper.getScheActivateOrderInfo();
    }

    @Override
    public List<JSONObject> getScheActivateDevInfo() {
        return scheOrderTaskInfoMapper.getScheActivateDevInfo();
    }
}
